﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaConverterWebForm.aspx.cs" Inherits="WebClient.AreaConverterWebForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            text-align: center;
            font-size: large;
        }
        .style2
        {
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="style1">
    
        AREA CONVERTER</div>
    <asp:Panel ID="Panel1" runat="server" style="text-align: center">
        Convert<br />
        <asp:TextBox ID="knownValue" runat="server" Height="20px" Width="130px"></asp:TextBox>
        &nbsp;&nbsp;<asp:DropDownList ID="knownMeasureType" runat="server" Height="24px" 
            Width="115px">
        </asp:DropDownList>
        &nbsp;<asp:Button ID="convertButton" runat="server" Height="21px" 
            onclick="Button3_Click" Text="convert" Width="109px" />
        &nbsp;
        <asp:TextBox ID="wantedValue" runat="server" Height="19px" Width="125px"></asp:TextBox>
        <asp:DropDownList ID="wantedMeasureType" runat="server" Height="24px" 
            Width="101px">
        </asp:DropDownList>
        <br />
        <asp:Label ID="errorMessage" runat="server" Text="..."></asp:Label>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server">
        <div class="style2">
            <br />
            Logger type<asp:RadioButtonList ID="loggerTypes" runat="server" 
                onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
                <asp:ListItem>txt</asp:ListItem>
                <asp:ListItem Selected="True">html</asp:ListItem>
            </asp:RadioButtonList>
&nbsp;<br />
            <br />
            Show log as
            <asp:Button ID="showAsTxtButton" runat="server" Height="20px" 
                onclick="showAsTxtButton_Click" Text="txt" Width="98px" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="showAsHtmlButton" runat="server" Height="19px" 
                onclick="showAsHtmlButton_Click" Text="html" Width="110px" />
            <br />
            <asp:ListBox ID="logText" runat="server" Height="204px" Width="653px">
            </asp:ListBox>
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
            save to file&nbsp;
            <asp:TextBox ID="logFileName" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="saveAsTxtButton" runat="server" onclick="saveAsTxtButton_Click" 
                Text="Save as txt" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="saveAsHtmlButton" runat="server" 
                onclick="saveAsHtmlButton_Click" Text="Save as Html" />
        </div>
    </asp:Panel>
    </form>
</body>
</html>
